#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include <QtNetwork>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void connectionStateChanged(QAbstractSocket::SocketState state);
    void connect2android();
    void connect2android(QString androidIP);
    void disconnectAndroid();
    void sendData();
    void sendData(QString testString);
    void receiveData();

private:
    Ui::MainWindow *ui;

    QSettings settings;

    QTcpSocket android;

    QTime roundTripTime;

};

#endif // MAINWINDOW_H
